<?php
if ( function_exists('register_sidebar') ) {
  /// This sidebar appears on all pages above the following sidebars
  register_sidebar(
    array(
      'name' => 'Navigational Menu',
	  'id' => 'nav-menu',
      'before_widget' => '',
      'after_widget' => '',
      'before_title' => '',
      'after_title' => '',
    )
  );
}

if ( function_exists('register_sidebar') ) {
  /// This sidebar appears on all pages above the following sidebars
  register_sidebar(
    array(
      'name' => 'about-box1',
	  'id' => 'about-box1',
      'before_widget' => '',
      'after_widget' => '',
      'before_title' => '',
      'after_title' => '',
    )
  );
}

if ( function_exists('register_sidebar') ) {
  /// This sidebar appears on all pages above the following sidebars
  register_sidebar(
    array(
      'name' => 'about-box2',
	  'id' => 'about-box2',
      'before_widget' => '',
      'after_widget' => '',
      'before_title' => '',
      'after_title' => '',
    )
  );
}

if ( function_exists('register_sidebar') ) {
  /// This sidebar appears on all pages above the following sidebars
  register_sidebar(
    array(
      'name' => 'about-box3',
	  'id' => 'about-box3',
      'before_widget' => '',
      'after_widget' => '',
      'before_title' => '',
      'after_title' => '',
    )
  );
}

if ( function_exists('register_sidebar') ) {
  /// This sidebar appears on all pages above the following sidebars
  register_sidebar(
    array(
      'name' => 'slickForm',
	  'id' => 'slickForm',
      'before_widget' => '',
      'after_widget' => '',
      'before_title' => '',
      'after_title' => '',
    )
  );
}

if ( function_exists('register_sidebar') ) {
  /// This sidebar appears on all pages above the following sidebars
  register_sidebar(
    array(
      'name' => 'Social Media',
	  'id' => 'social',
      'before_widget' => '',
      'after_widget' => '',
      'before_title' => '',
      'after_title' => '',
    )
  );
}

if ( function_exists('register_sidebar') ) {
  /// This sidebar appears on all pages above the following sidebars
  register_sidebar(
    array(
      'name' => 'Blog page side bar',
	  'id' => 'blog-side',
      'before_widget' => '',
      'after_widget' => '',
      'before_title' => '',
      'after_title' => '',
    )
  );
}
function service_slideshow_js(){
?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/service-slides/services_slides.css" type="text/css" />
<script src="<?php bloginfo('stylesheet_directory'); ?>/service-slides/jquery-easing.1.2.pack.js" type="text/javascript"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/service-slides/jquery-easing-compatibility.1.2.pack.js" type="text/javascript"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/service-slides/coda-slider.1.1.1.js" type="text/javascript"></script>

	<script type="text/javascript">
		jQuery(window).bind("load", function() {
			jQuery("div#slider1").codaSlider()
			// jQuery("div#slider2").codaSlider()
			// etc, etc. Beware of cross-linking difficulties if using multiple sliders on one page.
		});
	</script>
<?php
}
function my_init() {
	if (!is_admin()) {
		 //comment out the next two lines to load the local copy of jQuery
		wp_deregister_script('jquery');
		wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2');
		wp_enqueue_script('jquery');
	}
}
add_action('init', 'my_init');
?>
<?php
function get_blog() {
	query_posts('category_name=Blog&showposts=5');
	echo '<ul>';
		$count = 0;
		while (have_posts()) : the_post() ;
			echo '<li><a href="'.get_permalink().'">';
			the_title();
			echo '</a>  </li>';
			if ($count == 0)
				the_excerpt();
				$count++;
		endwhile;
	echo '</ul>';
	echo '<br />';
	$site_url = site_url() .'/category/blog/';
	echo '<a href="'.$site_url.'">Read More</a>';
}
function accordion_UI(){
	echo '<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>';
	echo '<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>';
}
?>